package com.example.controller;


import com.example.domain.Examination;
import com.example.domain.Queue;
import com.example.domain.Record;
import com.example.service.ExaminationService;
import com.example.service.QueueService;
import com.example.utils.AjaxResult;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

import static com.example.utils.AjaxResult.*;

@RestController
@RequestMapping("/root")
public class QueueController {

    @Autowired
    private QueueService queueService;

    /** 排队叫号 */
    @RequestMapping("/call")
    public AjaxResult queue(){
        queueService.upFinishNumber(1);
        return success("叫号成功");
    }

}
